home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
savg
/
state.bas
< prev
next >
Wrap
BASIC Source File
|
1995-01-09
|
699b
|
31 lines
Option Explicit
'--------------------------------------------------
' STATE.BAS
'--------------------------------------------------
' Maximum number of object we're tracking
Global Const MAX_OBJECTS = 3
' Actual number of objects we're tracking
Global Const NUM_OBJECTS = 3
' structure that holds a single x-y coordinate
Type tPoint
X As Integer
Y As Integer
End Type
' structure that holds information about a single game object.
Type tObject
Pos As tPoint
BorderStyle As Integer
End Type
' structure that holds information about a single player's
' game state.
Type tState
Object(0 To MAX_OBJECTS) As tObject
TextData As String
End Type